<?php
include_once('_PATH.php');
require_once($_CLASSPATH . '/persistence/MoodPersistence.class.php');
require_once($_CLASSPATH . '/model/Mood.class.php');

class MoodService {
	function setMood( $_uid, $_moodType, $_rate, $_note ) {
		$persist = new MoodPersistence();
		$persist->setMood( $_uid , $_moodType , $_rate, $_note );
	}
	
	function & getCurrentMood( $_uid ) {
		$persist = new MoodPersistence();
		$mood = & $persist->getCurrentMood( $_uid );
		return $mood;
	}
}

?>